package com.ruoyi.web.controller.cs;

import java.util.List;

import com.ruoyi.common.core.controller.BasicsController;
import com.ruoyi.common.core.page.ResponsePageInfo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.ruoyi.cs.domain.TVipReceive;
import com.ruoyi.cs.service.ITVipReceiveService;

/**
 * 用户VIP等级奖励领取记录Controller
 * 
 * @author ruoyi
 * @date 2023-03-02
 */
@Api(tags = {"用户VIP等级奖励领取"})
@RestController
@RequestMapping("/cs/vipreceive")
public class TVipReceiveController extends BasicsController
{
    @Autowired
    private ITVipReceiveService tVipReceiveService;

    @ApiOperation("用户VIP等级奖励领取记录列表")
    @PreAuthorize("@ss.hasPermi('system:receive:list')")
    @GetMapping("/list")
    public ResponsePageInfo<TVipReceive> list(@RequestBody  TVipReceive tVipReceive)
    {
        startPage(tVipReceive.getPageNum(),tVipReceive.getPageSize());
        List<TVipReceive> list = tVipReceiveService.selectTVipReceiveList(tVipReceive);
        return toResponsePageInfo(list);
    }
}
